<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/inc/sessionCheck.jsp" %>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://displaytag.sf.net/el" prefix="display"%>
<%@ taglib uri="/WEB-INF/config/tld/fmt.tld" prefix="fmt"%>
<%@ taglib uri="http://ssh.org/selects" prefix="ssh"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
	String applicationPath = basePath + "/" + "application";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title><bean:message key='com.application.systemmanager.notice_list' /></title>
        <link href="<%=path%>/css/jinmu_style.css" rel="stylesheet" type="text/css" />
		<script language="javascript" src="<%=path%>/js/util.js"></script>
	</head>
	<body>
	    <html:form styleId="projectViewForm" action="listProjectWorkSheetsList.do?method=getProjectWorkSheetsList" styleClass="simple">
	     <input type="hidden" id="totalPage" value="${totalPage}"/>
	   <table cellspacing="0" cellpadding="0" width="98%" align="center"  border="0" class="margtb5">
	    <tr>
	      <td align="left" class="padl5 lan12"><img src="<%=path%>/images/img-11.gif" width="12" height="12">&nbsp; 项目视图&nbsp;>&nbsp;<bean:message key="com.application.projectview.projectviewlist" bundle="projectview"/>&nbsp;</td>
	    </tr>
	 </table>
	 
<table cellspacing="3" cellpadding="0" width="98%" align="center"  border="0" class="kuang2 margtb5 hei12">
		<tr>
		     <td width="10%" align="right"><bean:message key="com.application.projectview.year" bundle="projectview"/>：</td>
	           <td width="10%">
		    		
		      		     <ssh:select propertyName="year" dataSource="collection" selectList="${yearSelect}"  type="1" defaultName="${projectViewForm.year}"/>
		                         		   		   </td>
                   		   <td width="10%" align="right"><bean:message key="com.application.projectview.workSheetsID" bundle="projectview"/>：</td>
	           <td width="15%">
		     
		    		   
		      		      <html:text property="projectid"/>
		                         		   		   </td>
                   		   <td width="10%" align="right"><bean:message key="com.application.projectview.projectName" bundle="projectview"/>：</td>
	           <td width="15%">
		     
		    		   
		      		      <html:text property="projectName"/>
		                         		   		   </td>
                   		  <td width="15%"><input class="buttonbg" id="but_query" type="button" value="查询" name="but_query" onClick="query();" /></td>
		</tr>
	</table>
			

		<table cellspacing="0" cellpadding="0" width="98%" align="center"  border="0" class="margb5">
            <tr>
				<td>
					<fmt:bundle basename="com.application.projectview.struts.ApplicationResources_projectview">
				        <display:table name="projectWorkSheetsList" class="simple" id="projectWorkSheets" pagesize="15" partialList="true" defaultsort="1" defaultorder="descending" size="resultSize" requestURI="listProjectWorkSheetsList.do?method=getProjectWorkSheetsList"  > 
						<display:setProperty name="sort.amount" value="projectWorkSheetsList"/>
						<display:column  sortable="true" titleKey="com.application.projectview.workSheetsID"  style="width:5%; text-align:center;" >
						   <a href="enterProjectView.do?method=enterProjectView&workSheetsID=${projectWorkSheets.workSheetsID}" >${projectWorkSheets.workSheetsID}</a> 
				        </display:column>
						<display:column property="projectName" titleKey="com.application.projectview.projectName" sortable="true"
							 style="width:20%; text-align:center;"  />
						<display:column property="projectType" titleKey="com.application.projectview.projectType" sortable="true"
							 style="width:5%; text-align:center;"  />
					    <display:column property="undertakeDepar" titleKey="com.application.projectview.cddw" sortable="true"
							 style="width:5%; text-align:center;"  />
					    <display:column property="costPlanning" titleKey="com.application.projectview.jhfy" sortable="true"
							 style="width:5%; text-align:center;"  />
					    <display:column property="principal" titleKey="com.application.projectview.xmfzr" sortable="true"
							 style="width:5%; text-align:center;"  />
						<display:column property="ifOutSourcing" titleKey="com.application.projectview.iswx" sortable="true"
							 style="width:5%; text-align:center;" />
						<display:column property="state" titleKey="com.application.projectview.status" sortable="true"
							 style="width:5%; text-align:center;" />
					</display:table>
	              </fmt:bundle>

				</td>
			</tr>
		</table>
     </html:form>
	</body>
</html>
<script>
function query(){
	document.forms[0].action="listProjectWorkSheetsList.do?method=getProjectWorkSheetsList";
	document.forms[0].submit();
}


</script>
